<include file="Public:top" />
<!--头部 end-->
<script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
 <include file="Public:menu" /> 
 <!--菜单 end-->
<form  id='crewForm' >
			<div class="form-group">
                    <div class="label"><label for="title">URL</label></div>
                    <div class="field">
                        <input type="text" class="input"  name="img_url" size="20" value="{$result.img_url}" placeholder="请填写url"  style="width:40%;" />
                        <p>添加http不用写/</p>
                    </div>
            </div>


              <div class="form-group">
                    <div class="label"><label for="readme">简洁介绍</label></div>
                    <div class="field">
                        <textarea class="input" name="cont" rows="5" cols="50" placeholder="内容简介说明" data-validate="required:内容简介说明">{$result.cont}</textarea>
                    </div>
                </div>
                <div align="center"><font color="green">留言时间:</font>&nbsp;&nbsp;&nbsp;<font color="red">{$result.add_time}</font></div>
<p>&nbsp;</p>
                       <input type="hidden" name="id" value="{$result.id}">
       <div class="form-button" align="center"><button class="button bg-main" id="sure" type="submit">提交</button>
       	<button class="button bg-main" onclick="history.go(-1)" href="">返回</button></div>

</form>


  <include file="Public:box" /> 
 <!--底部 end-->
 <script>

    //异步表单提交
        $('#sure').click(function(){

            $.post('/Console/hosturl/doUpdate',$('form').serialize(),function(data){

                if ( data.status )
                {
                    layer.alert(data.info, 1);

                    //刷新当前页
                    location.href = "/Console/hosturl";
                }
                else
                {

                    layer.alert(data.info);

                }

            },'json');

            return false;

        })

</script>